Optimal. Leaf size=156 \[ -\frac {(b c-4 a d) \sqrt {b c-a d} \tan ^{-1}\left (\frac {\sqrt {d} \sqrt {a+\frac {b}{x}}}{\sqrt {b c-a d}}\right )}{c^3 \sqrt {d}}+\frac {\sqrt {a} (3 b c-4 a d) \tanh ^{-1}\left (\frac {\sqrt {a+\frac {b}{x}}}{\sqrt {a}}\right )}{c^3}-\frac {\sqrt {a+\frac {b}{x}} (b c-2 a d)}{c^2 \left (c+\frac {d}{x}\right )}+\frac {a x \sqrt {a+\frac {b}{x}}}{c \left (c+\frac {d}{x}\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.22, antiderivative size = 156, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 7, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {375, 98, 151, 156, 63, 208, 205} \[ -\frac {\sqrt {a+\frac {b}{x}} (b c-2 a d)}{c^2 \left (c+\frac {d}{x}\right )}-\frac {(b c-4 a d) \sqrt {b c-a d} \tan ^{-1}\left (\frac {\sqrt {d} \sqrt {a+\frac {b}{x}}}{\sqrt {b c-a d}}\right )}{c^3 \sqrt {d}}+\frac {\sqrt {a} (3 b c-4 a d) \tanh ^{-1}\left (\frac {\sqrt {a+\frac {b}{x}}}{\sqrt {a}}\right )}{c^3}+\frac {a x \sqrt {a+\frac {b}{x}}}{c \left (c+\frac {d}{x}\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 63
Rule 98
Rule 151
Rule 156
Rule 205
Rule 208
Rule 375
Rubi steps
\begin {align*} \int \frac {\left (a+\frac {b}{x}\right )^{3/2}}{\left (c+\frac {d}{x}\right )^2} \, dx &=-\operatorname {Subst}\left (\int \frac {(a+b x)^{3/2}}{x^2 (c+d x)^2} \, dx,x,\frac {1}{x}\right )\\ &=\frac {a \sqrt {a+\frac {b}{x}} x}{c \left (c+\frac {d}{x}\right )}+\frac {\operatorname {Subst}\left (\int \frac {-\frac {1}{2} a (3 b c-4 a d)-\frac {1}{2} b (2 b c-3 a d) x}{x \sqrt {a+b x} (c+d x)^2} \, dx,x,\frac {1}{x}\right )}{c}\\ &=-\frac {(b c-2 a d) \sqrt {a+\frac {b}{x}}}{c^2 \left (c+\frac {d}{x}\right )}+\frac {a \sqrt {a+\frac {b}{x}} x}{c \left (c+\frac {d}{x}\right )}-\frac {\operatorname {Subst}\left (\int \frac {\frac {1}{2} a (3 b c-4 a d) (b c-a d)+\frac {1}{2} b (b c-2 a d) (b c-a d) x}{x \sqrt {a+b x} (c+d x)} \, dx,x,\frac {1}{x}\right )}{c^2 (b c-a d)}\\ &=-\frac {(b c-2 a d) \sqrt {a+\frac {b}{x}}}{c^2 \left (c+\frac {d}{x}\right )}+\frac {a \sqrt {a+\frac {b}{x}} x}{c \left (c+\frac {d}{x}\right )}-\frac {(a (3 b c-4 a d)) \operatorname {Subst}\left (\int \frac {1}{x \sqrt {a+b x}} \, dx,x,\frac {1}{x}\right )}{2 c^3}-\frac {((b c-4 a d) (b c-a d)) \operatorname {Subst}\left (\int \frac {1}{\sqrt {a+b x} (c+d x)} \, dx,x,\frac {1}{x}\right )}{2 c^3}\\ &=-\frac {(b c-2 a d) \sqrt {a+\frac {b}{x}}}{c^2 \left (c+\frac {d}{x}\right )}+\frac {a \sqrt {a+\frac {b}{x}} x}{c \left (c+\frac {d}{x}\right )}-\frac {(a (3 b c-4 a d)) \operatorname {Subst}\left (\int \frac {1}{-\frac {a}{b}+\frac {x^2}{b}} \, dx,x,\sqrt {a+\frac {b}{x}}\right )}{b c^3}-\frac {((b c-4 a d) (b c-a d)) \operatorname {Subst}\left (\int \frac {1}{c-\frac {a d}{b}+\frac {d x^2}{b}} \, dx,x,\sqrt {a+\frac {b}{x}}\right )}{b c^3}\\ &=-\frac {(b c-2 a d) \sqrt {a+\frac {b}{x}}}{c^2 \left (c+\frac {d}{x}\right )}+\frac {a \sqrt {a+\frac {b}{x}} x}{c \left (c+\frac {d}{x}\right )}-\frac {(b c-4 a d) \sqrt {b c-a d} \tan ^{-1}\left (\frac {\sqrt {d} \sqrt {a+\frac {b}{x}}}{\sqrt {b c-a d}}\right )}{c^3 \sqrt {d}}+\frac {\sqrt {a} (3 b c-4 a d) \tanh ^{-1}\left (\frac {\sqrt {a+\frac {b}{x}}}{\sqrt {a}}\right )}{c^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.39, size = 143, normalized size = 0.92 \[ \frac {-\frac {\left (4 a^2 d^2-5 a b c d+b^2 c^2\right ) \tan ^{-1}\left (\frac {\sqrt {d} \sqrt {a+\frac {b}{x}}}{\sqrt {b c-a d}}\right )}{\sqrt {d} \sqrt {b c-a d}}+\frac {c x \sqrt {a+\frac {b}{x}} (a c x+2 a d-b c)}{c x+d}+\sqrt {a} (3 b c-4 a d) \tanh ^{-1}\left (\frac {\sqrt {a+\frac {b}{x}}}{\sqrt {a}}\right )}{c^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.95, size = 769, normalized size = 4.93 \[ \left [-\frac {{\left (3 \, b c d - 4 \, a d^{2} + {\left (3 \, b c^{2} - 4 \, a c d\right )} x\right )} \sqrt {a} \log \left (2 \, a x - 2 \, \sqrt {a} x \sqrt {\frac {a x + b}{x}} + b\right ) + {\left (b c d - 4 \, a d^{2} + {\left (b c^{2} - 4 \, a c d\right )} x\right )} \sqrt {-\frac {b c - a d}{d}} \log \left (\frac {2 \, d x \sqrt {-\frac {b c - a d}{d}} \sqrt {\frac {a x + b}{x}} + b d - {\left (b c - 2 \, a d\right )} x}{c x + d}\right ) - 2 \, {\left (a c^{2} x^{2} - {\left (b c^{2} - 2 \, a c d\right )} x\right )} \sqrt {\frac {a x + b}{x}}}{2 \, {\left (c^{4} x + c^{3} d\right )}}, \frac {2 \, {\left (b c d - 4 \, a d^{2} + {\left (b c^{2} - 4 \, a c d\right )} x\right )} \sqrt {\frac {b c - a d}{d}} \arctan \left (-\frac {d \sqrt {\frac {b c - a d}{d}} \sqrt {\frac {a x + b}{x}}}{b c - a d}\right ) - {\left (3 \, b c d - 4 \, a d^{2} + {\left (3 \, b c^{2} - 4 \, a c d\right )} x\right )} \sqrt {a} \log \left (2 \, a x - 2 \, \sqrt {a} x \sqrt {\frac {a x + b}{x}} + b\right ) + 2 \, {\left (a c^{2} x^{2} - {\left (b c^{2} - 2 \, a c d\right )} x\right )} \sqrt {\frac {a x + b}{x}}}{2 \, {\left (c^{4} x + c^{3} d\right )}}, -\frac {2 \, {\left (3 \, b c d - 4 \, a d^{2} + {\left (3 \, b c^{2} - 4 \, a c d\right )} x\right )} \sqrt {-a} \arctan \left (\frac {\sqrt {-a} \sqrt {\frac {a x + b}{x}}}{a}\right ) + {\left (b c d - 4 \, a d^{2} + {\left (b c^{2} - 4 \, a c d\right )} x\right )} \sqrt {-\frac {b c - a d}{d}} \log \left (\frac {2 \, d x \sqrt {-\frac {b c - a d}{d}} \sqrt {\frac {a x + b}{x}} + b d - {\left (b c - 2 \, a d\right )} x}{c x + d}\right ) - 2 \, {\left (a c^{2} x^{2} - {\left (b c^{2} - 2 \, a c d\right )} x\right )} \sqrt {\frac {a x + b}{x}}}{2 \, {\left (c^{4} x + c^{3} d\right )}}, \frac {{\left (b c d - 4 \, a d^{2} + {\left (b c^{2} - 4 \, a c d\right )} x\right )} \sqrt {\frac {b c - a d}{d}} \arctan \left (-\frac {d \sqrt {\frac {b c - a d}{d}} \sqrt {\frac {a x + b}{x}}}{b c - a d}\right ) - {\left (3 \, b c d - 4 \, a d^{2} + {\left (3 \, b c^{2} - 4 \, a c d\right )} x\right )} \sqrt {-a} \arctan \left (\frac {\sqrt {-a} \sqrt {\frac {a x + b}{x}}}{a}\right ) + {\left (a c^{2} x^{2} - {\left (b c^{2} - 2 \, a c d\right )} x\right )} \sqrt {\frac {a x + b}{x}}}{c^{4} x + c^{3} d}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: TypeError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.06, size = 834, normalized size = 5.35 \[ -\frac {\left (4 a^{\frac {7}{2}} c \,d^{3} x \ln \left (\frac {-2 a d x +b c x -b d +2 \sqrt {\frac {\left (a d -b c \right ) d}{c^{2}}}\, \sqrt {\left (a x +b \right ) x}\, c}{c x +d}\right )-5 a^{\frac {5}{2}} b \,c^{2} d^{2} x \ln \left (\frac {-2 a d x +b c x -b d +2 \sqrt {\frac {\left (a d -b c \right ) d}{c^{2}}}\, \sqrt {\left (a x +b \right ) x}\, c}{c x +d}\right )+a^{\frac {3}{2}} b^{2} c^{3} d x \ln \left (\frac {-2 a d x +b c x -b d +2 \sqrt {\frac {\left (a d -b c \right ) d}{c^{2}}}\, \sqrt {\left (a x +b \right ) x}\, c}{c x +d}\right )+4 \sqrt {\frac {\left (a d -b c \right ) d}{c^{2}}}\, a^{3} c^{2} d^{2} x \ln \left (\frac {2 a x +b +2 \sqrt {\left (a x +b \right ) x}\, \sqrt {a}}{2 \sqrt {a}}\right )-3 \sqrt {\frac {\left (a d -b c \right ) d}{c^{2}}}\, a^{2} b \,c^{3} d x \ln \left (\frac {2 a x +b +2 \sqrt {\left (a x +b \right ) x}\, \sqrt {a}}{2 \sqrt {a}}\right )+4 a^{\frac {7}{2}} d^{4} \ln \left (\frac {-2 a d x +b c x -b d +2 \sqrt {\frac {\left (a d -b c \right ) d}{c^{2}}}\, \sqrt {\left (a x +b \right ) x}\, c}{c x +d}\right )-5 a^{\frac {5}{2}} b c \,d^{3} \ln \left (\frac {-2 a d x +b c x -b d +2 \sqrt {\frac {\left (a d -b c \right ) d}{c^{2}}}\, \sqrt {\left (a x +b \right ) x}\, c}{c x +d}\right )+2 \sqrt {\left (a x +b \right ) x}\, \sqrt {\frac {\left (a d -b c \right ) d}{c^{2}}}\, a^{\frac {5}{2}} c^{4} x^{2}+a^{\frac {3}{2}} b^{2} c^{2} d^{2} \ln \left (\frac {-2 a d x +b c x -b d +2 \sqrt {\frac {\left (a d -b c \right ) d}{c^{2}}}\, \sqrt {\left (a x +b \right ) x}\, c}{c x +d}\right )+4 \sqrt {\frac {\left (a d -b c \right ) d}{c^{2}}}\, a^{3} c \,d^{3} \ln \left (\frac {2 a x +b +2 \sqrt {\left (a x +b \right ) x}\, \sqrt {a}}{2 \sqrt {a}}\right )-3 \sqrt {\frac {\left (a d -b c \right ) d}{c^{2}}}\, a^{2} b \,c^{2} d^{2} \ln \left (\frac {2 a x +b +2 \sqrt {\left (a x +b \right ) x}\, \sqrt {a}}{2 \sqrt {a}}\right )-2 \sqrt {\left (a x +b \right ) x}\, \sqrt {\frac {\left (a d -b c \right ) d}{c^{2}}}\, a^{\frac {5}{2}} c^{3} d x +2 \sqrt {\left (a x +b \right ) x}\, \sqrt {\frac {\left (a d -b c \right ) d}{c^{2}}}\, a^{\frac {3}{2}} b \,c^{4} x -4 \sqrt {\left (a x +b \right ) x}\, \sqrt {\frac {\left (a d -b c \right ) d}{c^{2}}}\, a^{\frac {5}{2}} c^{2} d^{2}+2 \sqrt {\left (a x +b \right ) x}\, \sqrt {\frac {\left (a d -b c \right ) d}{c^{2}}}\, a^{\frac {3}{2}} b \,c^{3} d -2 \left (\left (a x +b \right ) x \right )^{\frac {3}{2}} \sqrt {\frac {\left (a d -b c \right ) d}{c^{2}}}\, a^{\frac {3}{2}} c^{4}\right ) \sqrt {\frac {a x +b}{x}}\, x}{2 \sqrt {\frac {\left (a d -b c \right ) d}{c^{2}}}\, \left (c x +d \right ) \sqrt {\left (a x +b \right ) x}\, a^{\frac {3}{2}} c^{4} d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (a + \frac {b}{x}\right )}^{\frac {3}{2}}}{{\left (c + \frac {d}{x}\right )}^{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 2.16, size = 448, normalized size = 2.87 \[ \frac {\mathrm {atanh}\left (\frac {8\,a^2\,b^5\,d^2\,\sqrt {a+\frac {b}{x}}\,\sqrt {a\,d^2-b\,c\,d}}{8\,a^3\,b^5\,d^3-10\,a^2\,b^6\,c\,d^2+2\,a\,b^7\,c^2\,d}-\frac {2\,a\,b^6\,d\,\sqrt {a+\frac {b}{x}}\,\sqrt {a\,d^2-b\,c\,d}}{2\,a\,b^7\,c\,d-10\,a^2\,b^6\,d^2+\frac {8\,a^3\,b^5\,d^3}{c}}\right )\,\sqrt {d\,\left (a\,d-b\,c\right )}\,\left (4\,a\,d-b\,c\right )}{c^3\,d}-\frac {\sqrt {a}\,\mathrm {atanh}\left (\frac {6\,\sqrt {a}\,b^7\,d\,\sqrt {a+\frac {b}{x}}}{6\,a\,b^7\,d-\frac {14\,a^2\,b^6\,d^2}{c}+\frac {8\,a^3\,b^5\,d^3}{c^2}}-\frac {14\,a^{3/2}\,b^6\,d^2\,\sqrt {a+\frac {b}{x}}}{6\,a\,b^7\,c\,d-14\,a^2\,b^6\,d^2+\frac {8\,a^3\,b^5\,d^3}{c}}+\frac {8\,a^{5/2}\,b^5\,d^3\,\sqrt {a+\frac {b}{x}}}{8\,a^3\,b^5\,d^3-14\,a^2\,b^6\,c\,d^2+6\,a\,b^7\,c^2\,d}\right )\,\left (4\,a\,d-3\,b\,c\right )}{c^3}-\frac {\frac {2\,\left (a\,b^2\,c-a^2\,b\,d\right )\,\sqrt {a+\frac {b}{x}}}{c^2}+\frac {b\,{\left (a+\frac {b}{x}\right )}^{3/2}\,\left (2\,a\,d-b\,c\right )}{c^2}}{\left (a+\frac {b}{x}\right )\,\left (2\,a\,d-b\,c\right )-d\,{\left (a+\frac {b}{x}\right )}^2-a^2\,d+a\,b\,c} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________